import React from 'react'
import {getShapeStyle} from '../../api/style'
function Zoi(props:any) {
  let content;
  switch(props.element.component){
    case 'Dimg':
      content=<img draggable={false} src={props.element.propLable} alt="" />
      break;
      default:
        content=null;
  }
  return (
    <div>
      <div style={getShapeStyle(props.element.style)}>
        {content}
      </div>
    </div>
  )
}

export default Zoi
